import { cn } from "@/common/cn";

type Props = {
  code: string;
  message: string;
  className?: string | undefined;
};

export default function ErrorViewer({ code, message, className }: Props) {
  return (
    <div className={cn("flex justify-center", className)}>
      <div className="flex items-center text-2xl font-bold pr-6">{code}</div>
      <p className="flex items-center border-l py-4 pl-6 text-gray-600">{message}</p>
    </div>
  );
}
